package linehit;

class Line {
    double x1;
    double x2;
    
    public Line(Double x, Double y) {
        this.x1 = x;
        this.x2 = y;
    }
    
    public boolean checkHit(double hit) {
        if(hit>x1 && hit<x2) return true;
        else return false;       
    }
}